<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* div先和p结合，然后使用并集选择器 */
        div p,
        span {
            color: red
        }
    </style>
</head>
<body>
    <h1>后代选择器测试</h1>
    <div>
        <span>div下的span</span>
        <p>div下的p</p>
    </div>
    <p>body下的p</p>
    <span>body下的span</span>
</body>
</html>